﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using TfsBugger.Buggers;
using TfsBugger.Controls;
using TfsBugger.Core;

namespace TfsBugger
{
    public static class BuggerUiFactory
    {
        public static UIElement CreateUi(Bugger b)
        {
            //HACK: Change to use attribute-based solution - 
            //bugger derivatives will use an attribute 
            //to specify the type of the control class 
            //that is their UI counterpart
            if (b is CheckInBugger)
                return new CheckInBuggerUi((CheckInBugger)b);

            return null;
        }
    }
}
